package com.aierkeji.call.b2c.controller;

import java.util.Map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import com.aierkeji.call.b2c.service.AkjCallLoginService;

@RestController
@RequestMapping("user")
public class AkjCallUserController extends BaseController{
	private final Logger log = LogManager.getLogger(getClass());
	
	
	@Autowired
	AkjCallLoginService akjCallLoginService;
	

	@PostMapping("getUserInfo")
	public Map<String, Object> getUserInfo(@RequestBody  Map<String, Object> map) {
		return akjCallLoginService.getUserInfo(map);
	}
	
	@PostMapping("updateUserInfo")
	public Map<String, Object> updateUserInfo(@RequestBody  Map<String, Object> map) {
		return akjCallLoginService.updateUserInfo(map);
	}
	
	@PostMapping("getAssigneUser")
	public Map<String, Object> getAssigneUser(@RequestBody  Map<String, Object> map) {
		return akjCallLoginService.getAssigneUser(map);
	}
	
	@PostMapping("uploadAppLogs")
	public Map<String, Object> uploadAppLogs(@RequestParam("file") MultipartFile file){
		
		return akjCallLoginService.uploadAppLogs(file);
	}
	
//	@PostMapping("getApplyUser")
//	public Map<String, Object> getApplyUser(@RequestBody  Map<String, Object> map) {
//		return akjCallLoginService.getApplyUser(map);
//		
//	}
	
	
}
